package com.yanfan.maintain.mapper;

import com.yanfan.maintain.domain.InspectionRoute;
import com.yanfan.maintain.domain.InspectionTaskRouteLog;
import com.yanfan.maintain.domain.InspectionTaskRouteLogExample;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface InspectionTaskRouteLogMapper {
    long countByExample(InspectionTaskRouteLogExample example);

    int deleteByExample(InspectionTaskRouteLogExample example);

    int deleteByPrimaryKey(Long id);

    int insert(InspectionTaskRouteLog record);

    int insertSelective(InspectionTaskRouteLog record);

    List<InspectionTaskRouteLog> selectByExample(InspectionTaskRouteLogExample example);

    InspectionTaskRouteLog selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") InspectionTaskRouteLog record, @Param("example") InspectionTaskRouteLogExample example);

    int updateByExample(@Param("record") InspectionTaskRouteLog record, @Param("example") InspectionTaskRouteLogExample example);

    int updateByPrimaryKeySelective(InspectionTaskRouteLog record);

    int updateByPrimaryKey(InspectionTaskRouteLog record);

    int insertBatch(@Param("list") List<InspectionTaskRouteLog> taskRouteLogs);

    List<InspectionTaskRouteLog> selectByTaskId(@Param("taskId") Long id);

    int checkedInspectionTaskItems(@Param("taskId") Long taskId, @Param("serialNumber") String serialNumber);

}
